package com.dianxun.exam.entity;

import org.greenrobot.greendao.annotation.Entity;

import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * * Bean 对象注释的解释
 *
 * @Entity：告诉GreenDao该对象为实体，只有被@Entity注释的Bean类才能被dao类操作
 @Id：对象的Id，使用Long类型作为EntityId，否则会报错。(autoincrement = true)表示主键会自增，如果false就会使用旧值
 @Property：可以自定义字段名，注意外键不能使用该属性
 @NotNull：属性不能为空
 @Transient：使用该注释的属性不会被存入数据库的字段中
 @Unique：该属性值必须在数据库中是唯一值
 @Generated：编译后自动生成的构造函数、方法等的注释，提示构造函数、方法等不能被修改
 */
@Entity
public class UserListBean {

    /**
     * userId : 001db1f9-a7e5-4002-9a05-af664df94683
     * password : kn
     * displayName : 管理员
     * userName : kn
     * roleStr: OP,admin
     */
    @Unique
    private String userId;

    private String password;

    private String displayName;

    private String userName;

    private String roleStr;

    @Generated(hash = 1873044878)
    public UserListBean(String userId, String password, String displayName,
            String userName, String roleStr) {
        this.userId = userId;
        this.password = password;
        this.displayName = displayName;
        this.userName = userName;
        this.roleStr = roleStr;
    }

    @Generated(hash = 412041815)
    public UserListBean() {
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDisplayName() {
        return this.displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoleStr() {
        return this.roleStr;
    }

    public void setRoleStr(String roleStr) {
        this.roleStr = roleStr;
    }
}